package br.com.jm.scwcd.obj1.client;

import java.io.IOException;

import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.ResponseHandler;
import org.apache.http.client.methods.HttpOptions;
import org.apache.http.impl.client.BasicResponseHandler;
import org.apache.http.impl.client.DefaultHttpClient;

public class OptionsClient {

	public static void main(String[] args) throws ClientProtocolException, IOException {
		HttpClient httpClient = new DefaultHttpClient();
		HttpOptions httpOptions = new HttpOptions("http://localhost:8081/Objective1/MethodsServlet");
		
		ResponseHandler<String> responseHandler = new BasicResponseHandler();
		httpClient.execute(httpOptions,responseHandler);
		
		System.out.println(responseHandler);
	}

}
